var tile = argument0;
var ID = argument1;
tile.spriteID = ID;
switch (ID)
{
    case 0:
        tile.sprite_index = spr_Sand_Floor;
        break;
    case 1:
        tile.sprite_index = spr_Wall_Right;
        break;
    case 2:
        tile.sprite_index = spr_Wall_RCC;
        break;
    case 3:
        tile.sprite_index = spr_Wall_Top;
        break;
    case 4:
        tile.sprite_index = spr_Wall_LCC;
        break;
    case 5:
        tile.sprite_index = spr_Wall_Left;
        break;
    case 6:
        tile.sprite_index = spr_Ceiling_LCC;
        break;
    case 7:
        tile.sprite_index = spr_Wall_Bottom;
        break;
    case 8:
        tile.sprite_index = spr_Ceiling_RCC;
        break;
    case 9:
        tile.sprite_index = spr_Ceiling_LCV;
        break;
    case 10:
        tile.sprite_index = spr_Ceiling_RCV;
        break;
    case 11:
        tile.sprite_index = spr_Wall_LCV;
        break;
    case 12:
        tile.sprite_index = spr_Wall_RCV;
        break;
    case 13:
        tile.sprite_index = spr_Ceiling;      
        break; 
}